﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContractorDtls.ascx.cs"
    Inherits="Workflow.Alerts.Sublayouts.ProfileSettings.ContractorDtls" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
<h2 class="settingsTitle">Uitvoerder</h2>
<div class="formcontainer">
    <div id="NetwOprtrDtlsForm">
        <h3 class="h3PageTitle">
            <asp:Label ID="lblCompanyName" runat="server" /></h3>
        <div id="Name" runat="server" class="boxRow">
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark2" runat="server" TargetControlID="txtName"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:Label ID="lblName" AssociatedControlID="txtName" runat="server" Text="Bedrijfsnaam"
                CssClass="settingsLabel" />
            <asp:TextBox ID="txtName" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="" ControlToValidate="txtName"
                CssClass="valMessage" />
            <div class="clear"></div>
        </div>
        <div id="Postaddress" runat="server" class="boxRow">
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark3" runat="server" TargetControlID="txtPostAddress"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:Label ID="lblPostAddress" AssociatedControlID="txtPostAddress" runat="server"
                Text="Postadres" CssClass="settingsLabel" />
            <asp:TextBox ID="txtPostAddress" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator ID="rfvPostAddress" runat="server" ErrorMessage="" ControlToValidate="txtPostAddress"
                CssClass="valMessage" />
            <div class="clear"></div>
        </div>
        <div class="boxRow">
            <div id="Postcode" runat="server" class="postalcode">
                <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark4" runat="server" TargetControlID="txtPostCode"
                    WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput120 required">
                </ajaxtoolkit:TextBoxWatermarkExtender>
                <asp:Label ID="lblPostCode" AssociatedControlID="txtPostCode" runat="server" Text="Postcode"
                    CssClass="settingsLabel" />
                <asp:TextBox ID="txtPostCode" runat="server" CssClass="styledInput styledInput120" />
                <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" ErrorMessage="" Display="Dynamic"
                    ControlToValidate="txtPostCode" CssClass="valMessage" />
                <asp:RegularExpressionValidator ID="rePostCode" runat="server" ErrorMessage="Gebruik 4 cijfers en twee letters, geen spaties."
                    Display="Dynamic" CssClass="valMessage" ControlToValidate="txtPostCode" ValidationExpression="^[1-9]{1}[0-9]{3}[A-Za-z]{2}$"> </asp:RegularExpressionValidator>
            </div>
            <div id="Postcity" runat="server" class="city">
                <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark5" runat="server" TargetControlID="txtPlaats"
                    WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput345 required">
                </ajaxtoolkit:TextBoxWatermarkExtender>
                <asp:Label ID="lblPlaats" AssociatedControlID="txtPlaats" runat="server" Text="Plaats"
                    CssClass="settingsLabel" />
                <asp:TextBox ID="txtPlaats" runat="server" CssClass="styledInput styledInput345" />
                <asp:RequiredFieldValidator ID="rfvPlaats" runat="server" ErrorMessage="" ControlToValidate="txtPlaats"
                    Display="Dynamic" CssClass="valMessage" />
                <asp:RegularExpressionValidator ID="rePostCity" runat="server" ErrorMessage="Alleen letters"
                    Display="Dynamic" CssClass="valMessage" ControlToValidate="txtPlaats" ValidationExpression="^[A-Za-z -\-']+$"> </asp:RegularExpressionValidator>
            </div>
            <div class="clear"></div>
        </div>
        <div id="Email" runat="server" class="boxRow">
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark6" runat="server" TargetControlID="txtEmail"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" Text="E-mail"
                CssClass="settingsLabel" />
            <asp:TextBox ID="txtEmail" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator Display="Dynamic" ID="rfvEmail" runat="server" ErrorMessage=""
                ControlToValidate="txtEmail" CssClass="valMessage" />
            <asp:RegularExpressionValidator Display="Dynamic" ID="reEmail" runat="server" ErrorMessage="Verkeerd e-mail formaat"
                CssClass="valMessage" ControlToValidate="txtEmail" ValidationExpression="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b"> </asp:RegularExpressionValidator>
            <asp:Label ID="lblEmailValidator" runat="server" Text="Gebruik aub een ander e-mailadres, het ingevulde mailadres is al in gebruik."
                Visible="false" />
            <div class="clear"></div>
        </div>
        <div id="Disable" runat="server" >
            <asp:CheckBox ID="chkDisabled" runat="server" Text="Actief" CssClass="radioButton radioButtonSettings" />
        </div>
        <div id="firstname" runat="server" class="boxRow">
            <asp:Label ID="lblFirstName" AssociatedControlID="txtFirstName" runat="server" Text="Voornaam"
                CssClass="settingsLabel" />
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark8" runat="server" TargetControlID="txtFirstName"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtFirstName" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" Display="Dynamic" ErrorMessage=""
                ControlToValidate="txtFirstName" CssClass="valMessage" />
            <asp:RegularExpressionValidator ID="reFirstName" runat="server" ErrorMessage="Alleen letters"
                Display="Dynamic" CssClass="valMessage" ControlToValidate="txtFirstName" ValidationExpression="^[A-Za-z -']+$"> </asp:RegularExpressionValidator>
            <div class="clear"></div>
        </div>
        <div id="lastname" runat="server" class="boxRow">
            <asp:Label ID="lblLastName" AssociatedControlID="txtLastName" runat="server" Text="Achternaam"
                CssClass="settingsLabel" />
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark9" runat="server" TargetControlID="txtLastName"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtLastName" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator ID="rfvLastName" runat="server" Display="Dynamic" ErrorMessage=""
                ControlToValidate="txtLastName" CssClass="valMessage" />
            <asp:RegularExpressionValidator ID="reLastName" runat="server" ErrorMessage="Alleen letters"
                Display="Dynamic" CssClass="valMessage" ControlToValidate="txtLastName" ValidationExpression="^[A-Za-z -']+$"> </asp:RegularExpressionValidator>
            <div class="clear"></div>
        </div>
        <div id="phone1" runat="server" class="boxRow">
            <asp:Label ID="lblPhone1" AssociatedControlID="txtPhone1" runat="server" Text="Telefoonnummer"
                CssClass="settingsLabel" />
            <ajaxtoolkit:TextBoxWatermarkExtender ID="watermark10" runat="server" TargetControlID="txtPhone1"
                WatermarkText="Verplicht veld" WatermarkCssClass="styledInput styledInput635 required">
            </ajaxtoolkit:TextBoxWatermarkExtender>
            <asp:TextBox ID="txtPhone1" runat="server" CssClass="styledInput styledInput635" />
            <asp:RequiredFieldValidator ID="rfvPhone1" runat="server" ErrorMessage="" Display="Dynamic"
                ControlToValidate="txtPhone1" CssClass="valMessage" />
            <asp:RegularExpressionValidator ID="rePhone1" runat="server" ErrorMessage="Verkeerd telefoon formaat (min. 10 cijfers)."
                Display="Dynamic" CssClass="valMessage" ControlToValidate="txtPhone1" ValidationExpression="\b(\d){10,12}\b"> </asp:RegularExpressionValidator>
            <div class="clear"></div>
        </div>
        <div id="phone2" runat="server" class="boxRow">
            <asp:Label ID="lblPhone2" AssociatedControlID="txtPhone2" runat="server" Text="Mobiel nummer"
                CssClass="settingsLabel" />
            <asp:TextBox ID="txtPhone2" runat="server" CssClass="styledInput styledInput635" />
            <asp:RegularExpressionValidator ID="rePhone2" runat="server" ErrorMessage="Verkeerd telefoon formaat (min. 10 cijfers)."
                CssClass="valMessage" ControlToValidate="txtPhone2" ValidationExpression="\b(\d){10,12}\b"> </asp:RegularExpressionValidator>
            <div class="clear"></div>
        </div>
    </div>    
    <div class="clear"></div>
</div>
<div class="footerButtonContainer">
    <%--Implement client logic: buttons(save & cancel) are disabled. if user has changed value in any field, then
buttons become enabled.--%>
    <asp:Button ID="btnSave" runat="server" Text="Opslaan" OnClick="btnSave_Click" CssClass="styledButton styledButton75" />
    <asp:Button ID="btnCancel" runat="server" Text="Annuleren" OnClick="btnCancel_Click"
        CausesValidation="False" CssClass="styledButton styledButton75" />
</div>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />

<script type="text/javascript">

    jQuery(document).ready(function() {
        workflow.form.radioButtonCtrl.SetupLabel();

        jQuery('.tag_password').pstrength(
			{
			    displayMinChar: false,
			    minChar: 4,
			    scores: [10, 20, 30, 40],
			    colors: ["transparent", "transparent", "transparent", "transparent", "transparent"],
			    verdicts: ['Zwak', 'Redelijk', 'Goed', 'Sterk', 'Zeer sterk']
			}
		);

        jQuery("input").change(function() {

        });

    }); 
</script>

